package org.gwtEss.table;

public class ColWidgetHelper {
	public static ColWidgetType getColWidgetType(ColWidget colWidget){
		if(colWidget instanceof SystemManagedColWidget) return ColWidgetType.SYSTEM_MANAGED; 
		if(colWidget instanceof UserManagedColWidget) return ColWidgetType.USER_MANAGED; 
		if(colWidget instanceof ReadOnlyTextColWidget) return ColWidgetType.READONLY_TEXT;
		if(colWidget instanceof SmartUserManagedColWidget) return ColWidgetType.SMART_USER_MANAGED;
		return ColWidgetType.UNDEFINED;
	}
}
